package test;

public class Swapping {
	
	static void swap(int a,int b, int c){
		  int temp=a;
		  a=c;
		  c=temp;
		  
		  int temp1=c;
		  c=b;
		  b=temp1;
		  
		  System.out.println("After swapping a = " + a + " b = " + b +" c ="+ c);
		  }
		  public static void main(String[] args){
		  int a=12;
		  int b=34;
		  int c=6;
		  
		  System.out.println("Before swapping a="+a+" b="+b+" c="+c);
		  swap(a,b,c);
		  
		  }

}
